<template>
  <div class="center">
    <div class="header">
      <div class="header_img">
        <!-- <img src="../../assets/center/touxiang.jpeg" alt /> -->
      </div>
      <div class="id">Gougou</div>
      <div class="information">
        <table>
          <tr>
            <td>我的佣金</td>
            <td>我的积分</td>
            <td>我的足迹</td>
          </tr>
          <tr>
            <td>0.00</td>
            <td>0</td>
            <td>0</td>
          </tr>
        </table>
      </div>
    </div>
    <a class="allorders">
      <van-icon name="notes-o" size="35" />
      <span>全部订单</span>
      <van-icon name="arrow" size="35" />
    </a>

    <ul class="ul_goods">
      <li>
        <img src="../../assets/center/order-icon01.png" alt />
        <p>待发货</p>
      </li>
      <li>
        <img src="../../assets/center/order-icon02.png" alt />
        <p>代付款</p>
      </li>
      <li>
        <img src="../../assets/center/order-icon03.png" alt />
        <p>待收货</p>
      </li>
      <li>
        <img src="../../assets/center/order-icon04.png" alt />
        <p>待评价</p>
      </li>
    </ul>

    <ul class="ul_self">
      <li class="allorders">
        <img src="../../assets/center/self-icon01.png" alt />
        <span>个人信息</span>
        <van-icon name="arrow" size="35" />
      </li>
      <li class="allorders">
        <img src="../../assets/center/self-icon02.png" alt />
        <span>我的收藏</span>
        <van-icon name="arrow" size="35" />
      </li>
      <li class="allorders">
        <img src="../../assets/center/self-icon03.png" alt />
        <span>消费记录</span>
        <van-icon name="arrow" size="35" />
      </li>
      <li class="allorders" @click="goAddress">
        <img src="../../assets/center/self-icon04.png" alt />
        <span>地址管理</span>
        <van-icon name="arrow" size="35" />
      </li>
      <li class="allorders">
        <img src="../../assets/center/self-icon011.png" alt />
        <span>我的分销</span>
        <van-icon name="arrow" size="35" />
      </li>
      <li class="allorders">
        <img src="../../assets/center/self-icon012.png" alt />
        <span>修改密码</span>
        <van-icon name="arrow" size="35" />
      </li>
      <li class="allorders">
        <img src="../../assets/center/self-icon013.png" alt />
        <span>账号绑定</span>
        <van-icon name="arrow" size="35" />
      </li>
    </ul>
    <button @click="exit">退出</button>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {};
  },
  computed: {},
  created() {},
  mounted() {},
  watch: {},
  methods: {
    exit() {
      console.log(1);

      this.$router.push("/login");
      sessionStorage.removeItem("token");
    },
    goAddress() {
      this.$router.push({ path: "/goaddress" });
    }
  },
  components: {}
};
</script>

<style scoped lang='less'>
.center {
  margin-bottom: 100px;
  background-color: rgb(241, 241, 241);
  .header {
    background-color: rgb(153, 153, 153);
    padding-top: 20px;
    .header_img {
      margin: 5px auto;
      width: 100px;
      height: 100px;
      border-radius: 50px;
      background-image: url(../../assets/center/touxiang.jpeg);
      background-repeat: no-repeat;
      background-position: 46% 36%;
      background-size: 274px;
    }
    .id {
      text-align: center;
      margin: 10px auto;
    }
    .information {
      width: 100%;
      background-color: rgb(197, 197, 197);
      padding: 10px 0;
      table {
        width: 100%;
        text-align: center;
        tr {
          td {
            font-size: 18px;
          }
        }
      }
    }
  }
  .allorders {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid gray;
    background-color: #fff;
    position: relative;
    span {
      font-size: 17px;
      position: absolute;
      left: 80px;
    }
  }
  .ul_goods {
    overflow: hidden;
    margin: 10px 0;
    background-color: #fff;
    padding: 15px 0;
    li {
      width: 25%;
      float: left;
      display: flex;
      flex-direction: column;
      align-items: center;
      p {
        margin-top: 10px;
        font-size: 17px;
      }
    }
  }
  .ul_self {
    .allorders {
      img {
        width: 43px;
      }
    }
    .allorders:nth-child(4) {
      margin-bottom: 20px;
    }
  }
  button {
    width: 80%;
    display: block;
    margin: 10px auto;
    border: none;
    background-color: #fc605a;
    font-size: 1.6em;
    color: #fff;
    padding: 4% 0;
    border-radius: 0.4em;
  }
}
</style>
